# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=py3-nose-timer
_pkgname=nose-timer
pkgver=1.0.0
pkgrel=0
pkgdesc="A timer plugin for nosetests that answers the question: how much time does every test take?"
url="https://github.com/mahmoudimus/nose-timer/"
arch="noarch !mips !mips64" # blocked by py3-parameterized
license="MIT"
depends="py3-nose"
makedepends="py3-setuptools"
checkdepends="py3-coverage py3-mock py3-parameterized py3-termcolor"
source="$pkgname-$pkgver.tar.gz::https://github.com/mahmoudimus/nose-timer/archive/v$pkgver.tar.gz"
builddir="$srcdir/"$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1afca31d422fc0306721cdcf4e6f23a88dffdbd85e3ec83d6a72c59c584f3919f17f0042129993d857bbf6f4105f58e989a7ee71835a7debf2844d674e587344  py3-nose-timer-1.0.0.tar.gz"
